<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
      /*   function sum(m, n){
            alert(m + n);
        }
        sum(+prompt('jdf'),+prompt('快递费')); */

        /* function getSum (num1, num2){
            return num1 +num2;
        }
        var result = getSum(100, 200)
        console.log(result); */

        function getMax(arr) {
            var max = arr[0];
            for(var i = 0; i < arr.length; i++){
                if(arr[i] > max) {
                    max = arr[i];
                }
            }
            return max;
        }
        var result = getMax([15, 78, 3, 789, 75]);
        console.log(result);
        
    </script>
</body>
</html>